<?php

class LoDeFactory
{
    public static function createGameLoDe($type)
    {
        switch ($type)
        {
            case Constant::GAME_LO_3DOT5_TYPE:
                return new LoXienx3dot5;
                break;
            case Constant::GAME_LOXIEN2x9_TYPE:
                return new LoXien2x9;
                break;
            case Constant::GAME_LOXIEN3x35_TYPE:
                return new LoXien3x35;
                break;
            case Constant::GAME_LOXIEN4x90_TYPE:
                return new LoXien4x90;
                break;
            case Constant::GAME_DEDAUx8_TYPE:
                return new DeDaux8;
                break;
            case Constant::GAME_DEDUOIx8_TYPE:
                return new DeDuoiX8;
                break;
            case Constant::GAME_DEx80_TYPE:
                return new DeX80;
                break;
            default:
                return NULL;
                break;
        }
    }
}

?>
